package com.ruoyi.oos.startstop.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;
import java.util.List;

/**
 * 启停记录对象 oos_startstop_record
 * 
 * @author wzy
 * @date 2020-05-25
 */
public class StartstopRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 测点分组id */
    private Long groupid;

    /** 测点分组名称 */
    @Excel(name = "测点分组名称")
    private String groupname;

    /** 测点id */
    private Long tagid;

    /** 测点名称 */
    @Excel(name = "测点名称")
    private String tagname;

    /** 开始时间 */
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date starttime;

    /** 结束时间 */
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endtime;

    /** 超限时长(分) */
    @Excel(name = "时长(分)")
    private Long times;

    /** 限值 */
    @Excel(name = "限值")
    private Long limitval;

    /** 计算类型 */
    @Excel(name = "计算类型", readConverterExp = "1=上下限,2=设备启停")
    private String calctype;

    /** 限值类型 */
    @Excel(name = "限值类型", readConverterExp = "1=单限值,2=多限值,3=动态限值,4=启停值")
    private String limittype;

    /** 数据类型1：启2：停 */
    @Excel(name = "数据类型", readConverterExp = "1=启,2=停")
    private String datatype;
    
    /**
     * 超限次数
     */
    private Integer counts;
    
    /**
     * 测点分组id集合
     */
    private List<Long> groupIds;

    // 查询条件开始日期
    private String startDate;
    // 查询条件结束日期
    private String endDate;
    
    private String tagname1;
    

        public Integer getCounts() {
			return counts;
		}

		public void setCounts(Integer counts) {
			this.counts = counts;
		}

		public List<Long> getGroupIds() {
			return groupIds;
		}

		public void setGroupIds(List<Long> groupIds) {
			this.groupIds = groupIds;
		}

		public String getStartDate() {
			return startDate;
		}

		public void setStartDate(String startDate) {
			this.startDate = startDate;
		}

		public String getEndDate() {
			return endDate;
		}

		public void setEndDate(String endDate) {
			this.endDate = endDate;
		}

				public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
        public void setGroupid(Long groupid)
    {
        this.groupid = groupid;
    }

    public Long getGroupid() 
    {
        return groupid;
    }
        public void setGroupname(String groupname)
    {
        this.groupname = groupname;
    }

    public String getGroupname() 
    {
        return groupname;
    }
        public void setTagid(Long tagid)
    {
        this.tagid = tagid;
    }

    public Long getTagid() 
    {
        return tagid;
    }
        public void setTagname(String tagname)
    {
        this.tagname = tagname;
    }

    public String getTagname() 
    {
        return tagname;
    }
        public void setStarttime(Date starttime)
    {
        this.starttime = starttime;
    }

    public Date getStarttime() 
    {
        return starttime;
    }
        public void setEndtime(Date endtime)
    {
        this.endtime = endtime;
    }

    public Date getEndtime() 
    {
        return endtime;
    }
        public void setTimes(Long times)
    {
        this.times = times;
    }

    public Long getTimes() 
    {
        return times;
    }
        public void setLimitval(Long limitval)
    {
        this.limitval = limitval;
    }

    public Long getLimitval() 
    {
        return limitval;
    }
        public void setCalctype(String calctype)
    {
        this.calctype = calctype;
    }

    public String getCalctype() 
    {
        return calctype;
    }
        public void setLimittype(String limittype)
    {
        this.limittype = limittype;
    }

    public String getLimittype() 
    {
        return limittype;
    }
        public void setDatatype(String datatype)
    {
        this.datatype = datatype;
    }

    public String getDatatype() 
    {
        return datatype;
    }
    
    

    public String getTagname1() {
		return tagname1;
	}

	public void setTagname1(String tagname1) {
		this.tagname1 = tagname1;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
        
        .append("id", getId())
        
        .append("groupid", getGroupid())
        
        .append("groupname", getGroupname())
        
        .append("tagid", getTagid())
        
        .append("tagname", getTagname())
        
        .append("starttime", getStarttime())
        
        .append("endtime", getEndtime())
        
        .append("times", getTimes())
        
        .append("limitval", getLimitval())
        
        .append("calctype", getCalctype())
        
        .append("limittype", getLimittype())
        
        .append("datatype", getDatatype())
            .toString();
    }
}
